﻿
// WinSvrServiceMonitorDlg.h: 头文件
//

#pragma once


// CWinSvrServiceMonitorDlg 对话框
class CWinSvrServiceMonitorDlg : public CDialogEx
{
// 构造
public:
	CWinSvrServiceMonitorDlg(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_WINSVRSERVICEMONITOR_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

		afx_msg void OnCancel();
public:
	afx_msg void OnBnClickedOk();
//	afx_msg void OnBnClickedCancel();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
public:
	unsigned int ServiceStatus;	
public:
	void MonitorMysqlService();
	afx_msg void OnBnClickedCancel2();
	CStatic m_lable;
	CStatic SvrStatus;
	CString SvrName;
	unsigned int MonitorTimeLength;//监控时间间隔，单位毫秒
	bool IsMonited;//是否在监控当中
	CStatic MonMode;
	unsigned int MonCount;
public:
	NOTIFYICONDATA m_nid;//托盘图标

	LRESULT OnShowTask(WPARAM wParam, LPARAM lParam);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	virtual BOOL DestroyWindow();
	afx_msg void OnBnClickedButton2();
//	afx_msg void OnBnClickedCancel();
	afx_msg void OnStnClickedStaticSvrstatus();

	bool ShowBalloonTip(LPCTSTR szMsg, LPCTSTR szTitle, UINT uTimeout, DWORD dwInfoFlags);
	afx_msg void On32771();
	afx_msg void On32772();
	afx_msg void OnStnClickedStaticCountinf();
	unsigned int RestartCount;
	afx_msg void OnStnClickedStaticCountinf2();
};
